package com.example.tianyidemo.service.impl;

import com.example.tianyidemo.Mapper.SreachcriceMapper;
import com.example.tianyidemo.pojo.Circle;
import com.example.tianyidemo.service.SreachCriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SreachCriceimpl implements SreachCriceService {
    @Autowired
    private SreachcriceMapper sreachcriceMapper;
    @Override
    public List<Circle> searchcrice(String searchStr) {
        List<Circle> searchResults = sreachcriceMapper.findBySearchStr(searchStr);
        System.out.println(searchStr);
        return searchResults;
    }
}
